function ajax_note(text) {
  if(!document.getElementById('note'))
    $('notices').innerHTML = '<div id="note" onclick="new Effect.Fade(this);">'+text+'</div>';
  else
  {
    Element.show('note');
    $('note').innerHTML = text;
  }
}

function ajax_error(text) {
  if(!document.getElementById('error'))
    $('notices').innerHTML = '<div id="error" onclick="new Effect.Fade(this);">'+text+'</div>';
  else
  {
    Element.show('error');
    $('error').innerHTML = text;
  }

  new Effect.Pulsate('error');
}

Event.observe(window, 'load', function() {
  if(document.getElementById('error')) {
    new Effect.Pulsate('error');
  }
});

function show_loader() { Element.show('loader'); };
function hide_loader() { Element.hide('loader'); };